﻿cmake_minimum_required(VERSION 2.8)

project(uvdemos)

# include 文件夹
include_directories(
    ${PROJECT_SOURCE_DIR}/libuv1.24/

)
# 链接库目录
link_directories(
    ${PROJECT_SOURCE_DIR}/libuv1.24/

)

# 输出程序输出文件夹
set(LIBRARY_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/build)
set(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/build)

# CMake生成临时文件
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}/build)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}/build)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}/build)

# 
# 子项目
add_subdirectory(basic)
add_subdirectory(libdemo)
add_subdirectory(t_tcp_s)
add_subdirectory(t_tcp_c)
add_subdirectory(t_udp_s)
add_subdirectory(t_udp_c)
add_subdirectory(t_dns)
add_subdirectory(t_fs_change)
add_subdirectory(t_http_s)

